home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / inasm10.zip / INASM.DOC < prev    next >
Text File  |  1991-03-10  |  1KB  |  54 lines

  1. documentation to INASM version 1.0
  2. ----------------------------------
  3.  
  4. This inlineassembler supports Codegeneration for Logitech Modula-2 and
  5. all versions of Turbo Pascal. If you register you are entitled to get
  6. all further updates. The registration fee amounts to 5-6 US $. Please
  7. be honest and send them to me, if you like to use the program. 
  8. Next versions will suport all the opcodes for 8086, 808286, 80386 and 80486
  9. plus all Numeric Coprocessors.
  10.  
  11. In this version you can asemble macros, bytelists, and external variables.
  12. The syntax is equally to Microsoft's Macroassembler.
  13.  
  14.  
  15. Syntax:
  16.  
  17. [label] opcode [argument [,argument]]; comments
  18.  
  19. STRING db 'teststring!',13,0Ah,0000000b
  20.  
  21. pushall macro
  22.         push ax
  23.     push bx
  24.     push cx
  25.     push all ; Macros my be called recursively
  26.     endm
  27.  
  28. External Variables:
  29.  
  30. Name EXT
  31.  
  32. Adressing:
  33.  
  34. You have to specify the Addressmode you want to use.
  35.  
  36. e.g: LDS SI, VARIABLE[BP]
  37.  
  38. Opcodes may not start in the first column, because they would be inter-
  39. preted als labels and this would produce an error.
  40.  
  41. there is a small demonstrationprogram:
  42.  
  43. ;function add(x, y: word): word;
  44.  
  45. X     EXT
  46. Y    EXT
  47.  
  48. ;codestart
  49.  
  50.     mov ax, x
  51.     mov bx, y
  52.     add ax, bx
  53.         end
  54.